package com.cysyz.commonservice.mycommonservice.exception;

import java.util.List;


public class InputValueIsNullOrEmptyException extends CommonServiceException {
	private List<String> isNullOrEmptyFields;
	
	public InputValueIsNullOrEmptyException(String message) {
		super(message);
	}
	public InputValueIsNullOrEmptyException(List<String> isNullOrEmptyFields) {
		StringBuilder message = new StringBuilder("the value is empty:");
		for (String field : isNullOrEmptyFields) {
			message.append(field).append(",");
		}
		message.deleteCharAt(message.length() - 1);
		commonServiceMsg = message.toString();
		this.isNullOrEmptyFields = isNullOrEmptyFields;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 9187533357748492578L;
	public List<String> getIsNullOrEmptyFields() {
		return isNullOrEmptyFields;
	}

}
